local Class = require("Core.Class")
local UIManager = CS.GameCore.UIManager.Instance

--- @Class UIMgr
local UIMgr = Class("UIManager")

function UIMgr:ShowPanel(panelName, onSucceed, onFailed)
    UIManager:GetPanel
    (
        panelName,
        function (panel)
            onSucceed(panel)
        end,
        function (errorInfo)
            onFailed(errorInfo)
        end
    )
end

function UIMgr:HidePanel(panelName)
    UIManager:HidePanel(panelName)
end

return UIMgr.New()